OPC Studio User's Guide and Reference
FromStream Method (StreamLoader<TValue>)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.IO Namespace > StreamLoader<TValue> Class : FromStream Method
The stream to load the value from.

The value of this parameter cannot be null (Nothing in Visual Basic).

Loads a value from a stream.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Function FromStream( _
   ByVal stream As Stream _
) As ValueResult(Of TValue)
'Usage
 
Dim instance As StreamLoader(Of TValue)
Dim stream As Stream
Dim value As ValueResult(Of TValue)
 
value = instance.FromStream(stream)
[NotNull()]
public ValueResult<TValue> FromStream( 
   Stream stream
)
[NotNull()]
public:
ValueResult<TValue^>^ FromStream( 
   Stream^ stream
) 

Parameters

stream
The stream to load the value from.

The value of this parameter cannot be null (Nothing in Visual Basic).

Return Value

Returns value result with the value loaded.

This method never returns null (Nothing in Visual Basic).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also